package com.erp.domain;

import com.erp.common.annotation.Excel;
import com.erp.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * @Author:lxs
 * @CreateTime: 2025-09-05
 * @Description:销售商品明细表
 */

public class ErpSalesItem extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** 关联销售出库单号 */
    private String soNo;

    /** 商品ID */
    private Long productId;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private Integer quantity;

    /** 单个销售金额 */
    @Excel(name = "单个销售金额")
    private BigDecimal unitPrice;

    @Override
    public String toString() {
        return "ErpSalesItem{" +
                "soNo='" + soNo + '\'' +
                ", productId=" + productId +
                ", quantity=" + quantity +
                ", unitPrice=" + unitPrice +
                "} " + super.toString();
    }

    public String getSoNo() {
        return soNo;
    }

    public void setSoNo(String soNo) {
        this.soNo = soNo;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }
}
